
package com.yq.lock;

/**
 * Simple to Introduction
 * className: MainDemo
 *
 * @author YangQian
 * @version 2018/4/24 13:03
 */
public class MainDemo {
    public static void main(String args[]) {

        for (int i=0; i < 10; i++) {
            Thread threadA = new Thread(new MyRunnableA());
            Thread threadB = new Thread(new MyRunnableB());
            threadA.start();
            threadB.start();
        }
    }

}
